package com.zxc.services;

import com.github.pagehelper.PageInfo;
import com.zxc.entity.Emp;

import java.util.List;

/**
  * @author: zxc
  * @return:
  * @time:  2021/5/20 19:30
  * @description:
  */
public interface EmpServices {

    List<Emp> getAll();

    /**
      * @author: zxc
      * @return:
      * @time:  2021/5/20 19:30
      * @description: 分页
      */
    PageInfo<Emp> getByPage(Integer pageNum);

    boolean addEmp(Emp emp);

    boolean delEmp(int eno);

    Emp getEmpByEno(Integer eno);

    boolean updateEmp(Emp emp);

    Emp login(String ename,String pwd);
}
